import java.util.Scanner;

public class Array2 {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int n = num.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = num.nextInt();
        }
        delete(arr);
    }

    public static void delete(int[] arr) {
        int len = arr.length;
        int newLen = 0;
        if (arr.length % 2 == 0) {
            newLen = len - 2;
        } else {
            newLen = len - 1;
        }

        int[] temp = new int[newLen];

        //偶数
        if (arr.length % 2 == 0) {
            int even = len / 2;
            for (int i = 0; i < newLen; i++) {
                if (i < even - 1) {
                    temp[i] = arr[i];
                } else {
                    temp[i] = arr[i + 2];
                }
            }//奇数
        } else {
            int odd = (len + 1) / 2;
            for (int i = 0; i < newLen; i++) {
                if (i < odd - 1) {
                    temp[i] = arr[i];
                } else {
                    temp[i] = arr[i + 1];
                }
            }
        }
        for (int e : temp) {
            System.out.print(e + " ");
        }
    }
}
